//
//  UIButton+Enable.m
//  Bigeyes
//
//  Created by 红沙尘 on 17/5/2.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "UIButton+Enable.h"

@implementation UIButton (Enable)

- (void)canEnable:(BOOL)can {
    
    if (can) {
        self.alpha = 1;
    } else {
        self.alpha = 0.3;
    }
    self.userInteractionEnabled = can;
}

@end
